package org.dromara.patrol.domain.model.snap;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

@Data
public class DeviceChannel implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     *  设备id
     */
    @NotNull(message = "设备id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deviceId;
    /**
     * 设备序列号
     */
    @NotBlank(message = "设备序列号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceSn;
    /**
     * 设备名称
     */
    @NotBlank(message = "设备名称不能为空")
    private String deviceName;
    /**
     * 设备通道信息
     * 暂时不支持多通道
     */
    private List<ChannelInfos> channelInfos;
    /**
     * 设备通道号
     */
    private List<Integer> channelNo;
}
